From: Keir Fraser Date: Fri, 16 Jan 2009 15:32:12 +0000 (+0000) Subject: x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14014^2~49 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=36b4fb7408b0bf5dbdc3082836f3e4ae0b4f5703;p=xen.git x86: Let dom0 write MPERF/APERF MSRs if it is managing cpufreq. Signed-off-by: Chris Lalancette --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index cd23b9bc50..226cc899da 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2178,6 +2178,8 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) if ( wrmsr_safe(MSR_FAM10H_MMIO_CONF_BASE, eax, edx) != 0 ) goto fail; break; + case MSR_IA32_MPERF: + case MSR_IA32_APERF: case MSR_IA32_PERF_CTL: if ( boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ) goto fail;